package com.zzw.api;

import com.zzw.pojo.MyResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 邮箱feign接口
 *
 * @Author: zhangzhiwei
 * @Date: 2022/4/7 21:31
 */
@FeignClient(value = "lagou-service-email", fallback = EmailFallback.class, path = "/email")
public interface EmailFeignClient {

    @GetMapping("/sendEmail/{email}/{code}")
    MyResponse<Boolean> sendEmail(@PathVariable String email, @PathVariable String code);

}
